package com.zs4sdk.dialog;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

import com.common.library.util.ActivityHelper;


/**
 * Created by Jancy on 16/5/26.
 */
public class IdCardInfoDialog extends Dialog{

    private Context context;
    private TextView titleTextView,nameTextView,idNumberTextView;
    private Button cannelButton,sureButton;
    private String name,idNumber;

    public IdCardInfoDialog(Context context, String name, String idNumber) {
        super(context, ActivityHelper.getStyleResId("zs4gamemisc_text_dialog"));
        // TODO Auto-generated constructor stub
        this.context = context;
        this.name = name;
        this.idNumber = idNumber;
    }
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        // TODO Auto-generated method stub
        super.onCreate(savedInstanceState);
        this.setContentView(ActivityHelper.getLayoutResId("zs4gamelayout_dialog_about_idcardinfo"));

        nameTextView   = (TextView)findViewById(ActivityHelper.getIdResId("zs4gameviewid_txv_verify_name"));
        idNumberTextView     = (TextView)findViewById(ActivityHelper.getIdResId("zs4gameviewid_txv_verify_idnumber"));
        titleTextView     = (TextView)findViewById(ActivityHelper.getIdResId("zs4gameviewid_mTextView_view_titlebar"));

        titleTextView.setText(ActivityHelper.getStringResId("zs4gamestring_account_start_verify_id_successed"));
        nameTextView.setText(name);
        idNumberTextView.setText(idNumber);


        ((ImageView)findViewById(ActivityHelper.getIdResId("zs4gameviewid_mLeftView_view_titlebar"))).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                dismiss();
            }
        });
    }

}
